    {include file="../view/head" /}
    <style>
    /*页面自定义样式*/
    #chat .panel-heading {padding-right: 60px;}
    #chat .panel-heading h4{float: left;max-width: 78%;}
    #chat .panel-heading small {
        float: right;
        display: inline-block;
        margin: 10px 0;
    }
    #chat .panel-footer img{
        height:45px;
        width: auto;
        border-radius: 5px;
    }
    </style>
    </head>
    <body>
        {include file="../view/header" /}
        {include file="../view/sidebar" /}
        {include file="../view/right-sidebar" /}
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-md-12">
                            <!-- col-lg-12 start here -->
                            <div class="panel panel-default toggle panelRefresh">
                                <!-- Start .panel -->
                                <div class="panel-heading" style="padding: 10px 15px;">
                                    <a href="{:url('users/gongdan_list',['zt'=>'all'])}" class="btn btn-info">返回全部</a>
                                    <a href="{:url('users/gongdan_list',['zt'=>'1'])}" class="btn btn-info">返回已解决</a>
                                    <a href="{:url('users/gongdan_list',['zt'=>'0'])}" class="btn btn-info">返回未解决</a>
                                </div>
                                <div class="panel-body" id="chat">
                                {foreach $lists as $list}
                                    <div class="panel {$list.type=='u'?'panel-primary':'panel-dark'} panelMove toggle">
                                        <div class="panel-heading">
                                            <h4>{$list.type=='u'?$list.uname:'系统回复'}》{$list.title}</h4>
                                            <small>{$list.time|date='Y-m-d H:i:s',###}</small>
                                        </div>
                                        <div class="panel-body">
                                            {$list.msg}
                                        </div>
                                        {if condition="$list.imgs neq ''"}
                                        <div class="panel-footer">
                                            {foreach $list.imgs as $img}
                                                <a href="/{$img}" target="_blank"><img src="/{$img}" alt=""></a>
                                            {/foreach}
                                        </div>
                                        {/if}
                                    </div>
                                {/foreach}
                                </div>
                                <div class="panel-footer">
                                    {if condition='$zt eq "1"'}
                                    该工单标记为已解决，不能继续回复！
                                    {else /}
                                    <form action="#" method="post">
                                        {:token()}
                                        <input type="text" class="hidden" name="qid" value="{$qid}">
                                        <input type="text" class="hidden" name="gd_zt" id="gd_zt" value="0">
                                        <div class="form-group">
                                            <textarea name="msg" class="form-control elastic" rows="3" placeholder="回复信息..."></textarea>
                                        </div>
                                        <div class="form-group">
                                            <div class="row">
                                                <div class="col-md-6">
                                                    <input type="submit" class="btn btn-info btn-block" value="回复" onclick="$('#gd_zt').val('0');">
                                                </div>
                                                <div class="col-md-6">
                                                    <input type="submit" class="btn btn-success btn-block" value="回复并结单（已解决）" onclick="$('#gd_zt').val('1');">
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                    {/if}
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        <!-- End #content -->
        {include file="../view/foot" /}
        <script src="/public/theme/win10/assets/plugins/forms/checkall/jquery.checkAll.js"></script>
        <script>
            $('.table').checkAll({
                masterCheckbox: '.check-all',
                otherCheckboxes: '.check'
            })
        </script>
    </body>
</html>